//副屏的接口函数

//调用副屏页面函数
function main_fun(function_name, info) {
    window.external.send_main(function_name, info);
}




var startvicetouch_callback;
//打开副屏操作
function start_vice_touch(data, callback) {
    startvicetouch_callback = callback;
    window.external.start_touch(data, "start_vice_touch_callback");
}
function start_vice_touch_callback(receivedData) {
    startvicetouch_callback(receivedData);
}


var stopvicetouch_callback;
//关闭副屏操作
function stop_vice_touch(data, callback) {
    stopvicetouch_callback = callback;
    window.external.stop_touch(data, "stop_vice_touch_callback");
}
function stop_vice_touch_callback(receivedData) {
    stopvicetouch_callback(receivedData);
}

var startsign_callback;
//打开副屏手写
function start_vice_sign(data, callback) {
    startsign_callback = callback;
    window.external.start_vsign(data, "start_vice_sign_callback");
}
function start_vice_sign_callback(receivedData) {
    startsign_callback(receivedData);
}

var stopsign_callback;
//关闭副屏手写
//data为空
function stop_vice_sign(data, callback) {
    stopsign_callback = callback;
    window.external.stop_vsign(data, "stop_vice_sign_callback");
}
function stop_vice_sign_callback(receivedData) {
    stopsign_callback(receivedData);
}

//清空副屏手写
function clean_vice_sign() {
    window.external.clear_vsign();
}




